<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> 视差滚动 </title>
    <style>
        .c1{
            height: 600px;
            background-color: red;
        }

        .c2{
            height: 600px;
            background-color: blue;
        }
    </style>
</head>
<body>
    <div id="luxy">
        <div class="luxy-el c1" data-speed-y="5" data-offset="-50">内容1</div>
        <div class="luxy-el c2" data-speed-y="10" data-offset="-50">内容2</div>
    </div>
</body>
<script src="./lib/jquery.min.js"></script>
<script src="./lib/luxy.min.js"></script>
<script>
    luxy.init();
</script>
</html>